package com.java.myapp.utility;

import java.util.Locale;
import java.util.ResourceBundle;

import com.java.myapp.constants.AppConstants;

public class ResourceService {
	private static ResourceBundle rb;
	
	private ResourceService(){
		rb=ResourceBundle.getBundle(AppConstants.NAME_RESOURCE, Locale.getDefault());
	}
	
	public static ResourceBundle getResourceBundle(){
		if(rb==null){
			new ResourceService();
		}
		return rb;
	}

}
